import request from "@/utils/request";

// 查询样式配置列表
export function listStyle(query) {
  return request({
    url: "/sale/style/list",
    method: "get",
    params: query
  });
}

// 查询样式配置详细
export function getStyle(id) {
  return request({
    url: "/sale/style/" + id,
    method: "get"
  });
}

// 新增样式配置
export function addStyle(data) {
  return request({
    url: "/sale/style/save",
    method: "post",
    data: data
  });
}

// 修改样式配置
export function updateStyle(data) {
  return request({
    url: "/sale/style/save",
    method: "post",
    data: data
  });
}

// 删除样式配置
export function delStyle(id) {
  return request({
    url: "/sale/style/" + id,
    method: "post"
  });
}
